﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:s="clr-namespace:System;assembly=mscorlib"
        xmlns:l="clr-namespace:SharePointOptimizer.PL.WPF"
        
        xmlns:componentModel="clr-namespace:System.Windows.Data;assembly=PresentationFramework"
		xmlns:SharePointOptimizer_SQLServer="clr-namespace:SharePointOptimizer.DL.SQLServer;assembly=SharePointOptimizer.DL.SQLServer"         
		mc:Ignorable="d" x:Class="SharePointOptimizer.PL.WPF.MainWindow"  
        Title="SharePoint Optimizer" Height="732" Width="1000"
        ResizeMode="CanResizeWithGrip" 
		Icon="SharePointOptimizer_Logo.ico"		
        WindowState="Normal" Topmost="False"	   
    	WindowStyle="None" AllowsTransparency="False" MouseDoubleClick="Window_MouseDoubleClick"
        xmlns:sys="clr-namespace:System;assembly=mscorlib">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="template/BureauBlue.xaml"/>                
            	<ResourceDictionary Source="Styles/layoutstyles.xaml"/>               
            	<ResourceDictionary Source="colors/colorcode.xaml"/>
            	<ResourceDictionary Source="Styles/GlassButton.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            
              

            <Storyboard x:Key="TabStoryboardResource">
                <DoubleAnimation 
                  Storyboard.TargetName="tabMain"
                  Storyboard.TargetProperty="Opacity"
                  From="0.0"
                  To="1.0"  />
            </Storyboard>
			  
        <LinearGradientBrush x:Key="DarkBorderBrush" StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#363636" Offset="0.0"/>
                    <GradientStop Color="#000000" Offset="1.0"/>
                </GradientStopCollection>
            </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

       
 
        </ResourceDictionary>
   
    </Window.Resources>
   


   
    <Window.CommandBindings>
    	<CommandBinding Command="Help"
    		CanExecute="HelpCanExecute" 
    		Executed="HelpExecuted"/>        
    </Window.CommandBindings>
	
<Window.Background>
    <ImageBrush ImageSource="Images/watermark.png" Stretch="UniformToFill"  />
</Window.Background>
  
    <Viewbox Stretch="UniformToFill">
<Border Background="DarkBlue" Height="auto" CornerRadius="5" BorderBrush="{StaticResource DarkBorderBrush}" BorderThickness="2,2,2,2">
 
    <Grid 
		 x:Name="DragableArea"
         MouseDown="DragableGridMouseDown" 
	    
	 VerticalAlignment="Top" Height="auto" Margin="0,0,2.332,0" Width="946.528">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="619*"/>
    		<RowDefinition Height="84*"/>
    	</Grid.RowDefinitions>
    	<Grid.Background>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FFD8E9EB" Offset="0"/>
    			<GradientStop Color="#FF7CC6D0" Offset="1"/>
    		</LinearGradientBrush>
    	</Grid.Background>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0*"/>
    		<ColumnDefinition/>
    		<ColumnDefinition Width="0*"/>
    		<ColumnDefinition Width="0*"/>
    		<ColumnDefinition Width="0*"/>
    	</Grid.ColumnDefinitions>
		
        <Image Source="Images/watermark.png"  Stretch="Fill" Margin="-9,0,0,0" Grid.RowSpan="2" Grid.ColumnSpan="2"/>
		
    	<TabControl 
    		x:Name="tabMain" 
    		Height="683.42"
					
    		VerticalAlignment="Top" 
    		FontFamily="Segoe UI" 
    		Grid.Column="0"
    		    Background="Transparent" 
                Margin="-37,-8,-1.29,0" 
                Grid.RowSpan="2" 
                Grid.ColumnSpan="5" 
                RenderTransformOrigin="0.496,0.446" 
            >
    		<TabControl.Foreground>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="Black" Offset="0"/>
    				<GradientStop Color="Black" Offset="1"/>
    			</LinearGradientBrush>
    		</TabControl.Foreground>
    		<TabItem Header="Optimize" 
    			Background="#FFE8EAEB"
    			Margin="0,12,-143,-23" 
    			BorderBrush="#00E2DD6A" 
    			FontSize="13.333" 
    			FontFamily="/SharePointOptimizer.PL.WPF;component/Fonts/#Arial" 
    			FontWeight="Bold"  
				HorizontalAlignment="Right" 
				Width="100" 
				Foreground="#FFE8EAF5"
                     >
                    
    			<Grid Height="650" Width="1104.5"
    				
                      >
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition Width="0.422*"/>
    					<ColumnDefinition Width="0.143*"/>
    					<ColumnDefinition Width="16.991"/>
    					<ColumnDefinition Width="Auto" MinWidth="24.297"/>
    					<ColumnDefinition Width="0.435*"/>
    				</Grid.ColumnDefinitions>
                    
    				<Grid Margin="-6.333,-107.265,40,-60.159" Grid.ColumnSpan="5" >
    					<Grid.ColumnDefinitions>
    						<ColumnDefinition Width="0.497*" />
    						<ColumnDefinition Width="0.141*"/>
    						<ColumnDefinition Width="0.362*" />
    						<ColumnDefinition Width="34.9999999999999"/>
    						<ColumnDefinition Width="99.3748790322579"/>
    						<ColumnDefinition Width="225.796370967742"/>
    						<ColumnDefinition Width="480.82875"/>
    					</Grid.ColumnDefinitions>

    					
                        
                        
                        <Button                           
    						Height="34" 
    						Margin="135.999,0,52.796,270.5" 
    						x:Name="btnStartCheck" 
    						VerticalAlignment="Bottom" 
    						Click="btnStartCheck_Click" 
    						Style="{StaticResource GlassButton}"
    						Background="#FF7CDDFD"
    						ToolTip="Start Check" Width="37" Grid.Column="5" d:LayoutOverrides="HorizontalMargin">
    						<Image Name="image_start" Width="60" Height="31" Source="Images\start.png" ImageFailed="image_start_ImageFailed" />	
    					</Button>
                                    <ProgressBar
                Grid.Row="0" Grid.Column="2"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Name="pbCollectionProgress"
                Width="450" 
                Height="21"                                     
                Maximum="100"
                Visibility="Hidden"
                
                 />

                                    <Grid
    						Grid.ColumnSpan="7"
    						Background="{x:Null}" Margin="-81.138,0,158.089,308.5" Height="329.458" VerticalAlignment="Bottom"
                               >
                            </Grid>

 
                        
    					<StatusBar  
                            Margin="4.375,0,-64.043,0" 
                            x:Name="statusBar" 
                            Height="30.5" VerticalAlignment="Bottom" Grid.ColumnSpan="7" Background="{x:Null}" >
    						<TextBlock x:Name="statusText"><Run Text="Ready."/></TextBlock>
    					</StatusBar>
    					
    				</Grid>
    				<ProgressBar Grid.ColumnSpan="2" Grid.Column="2" Height="33.212" Margin="-42.172,0,-118.658,209.26" VerticalAlignment="Bottom"/>
    			</Grid>
            
    		</TabItem>
                <TabItem
                    Header="Issues" 
                    Margin="146,12,-146,-23"  
                    BorderBrush="#FFE2DD6A" 
    			    FontSize="13.333" 
    			    FontFamily="/SharePointOptimizer.PL.WPF;component/Fonts/#Arial" 
                    FontWeight="Bold" 
                    Foreground="#FFE8EAF5"
					Width="100"
					
                    >
                	
                <Grid Name="recomendationGrid"
                      Width="918.445"
                      Height="606.843"
                      
                      >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.01*" />
                            <ColumnDefinition Width="0*" />
                            <ColumnDefinition Width="0.99*"/>
                            <ColumnDefinition Width="0*"/>
                        </Grid.ColumnDefinitions>

                           

                	<l:IssuesReportControl x:Name="IssueReport" BorderThickness="0" Margin="0,63.769,238,145.857" Grid.Column="2" Width="628" Height="Auto" HorizontalAlignment="Right" Grid.ColumnSpan="1" Loaded="IssueReport_Loaded" />
                    
                            
                            <Grid Margin="0,49,42,108.074" Grid.Column="2" HorizontalAlignment="Right" Width="200.384">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="0*" />
                                    <ColumnDefinition Width="0.689*"/>
                                    <ColumnDefinition Width="0.311*" />
                                </Grid.ColumnDefinitions>
                                <Button x:Name="btnRestore" 
                            		Height="34" 
                            		VerticalAlignment="Top" 
                            		Style="{StaticResource GlassButton}"
                            		Background="#FF7CDDFD"  
                            		ToolTip="Open Results" 
									Click="btnRestore_Click" 
									Margin="-530,-25,0,0" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Left" Width="37">
                            		<Image Width="32" Height="22" Source="Images\import.png" d:LayoutOverrides="Width, Margin"/>
                            	</Button>
                            </Grid>
                            <Label x:Name="lblRecomendations" 
                            	Content="Issues &amp; Recomendations" 
                            	Height="31" Margin="51.645,-37.537,0,0" 
                            	VerticalAlignment="Top" 
                            	HorizontalAlignment="Left" 
                            	Width="250" FontWeight="Bold" 
                            	FontSize="16" 
                            	Foreground="#FFE1E8E9" Grid.Column="2" d:LayoutOverrides="HorizontalAlignment" />
                            <Button x:Name="btnSaveResults" 
                            	Margin="0,24.147,690.39,0" 
                            	Style="{StaticResource GlassButton}"
                            	Background="#FF7CDDFD"
                            	Width="37"  
                            	ToolTip="Save Results" Click="btnSaveResults_Click" HorizontalAlignment="Right" Height="34" VerticalAlignment="Top" Grid.Column="2">
                            	<Image Width="32" Height="25" Source="Images\save.png" d:LayoutOverrides="Width, Margin"/>
                            </Button>
                        </Grid>
				
                </TabItem>

                
			
                <TabItem 
                    Header="Reports"
                    Name="Reports" 
					Margin="0,12,-125,-23" 
					BorderBrush="#FFE2DD6A" 
    			FontSize="13.333" 
    			FontFamily="/SharePointOptimizer.PL.WPF;component/Fonts/#Arial" 
    			FontWeight="Bold" 
    			Foreground="#FFE8EAF5"
					HorizontalAlignment="Right" 
					Width="100">
                     <Grid Height="649.938" Width="934.571" >
                     	<Grid.ColumnDefinitions>
                     		<ColumnDefinition Width="0.572*"/>
                     		<ColumnDefinition Width="0.046*"/>
                     		<ColumnDefinition Width="0.383*"/>
                     	</Grid.ColumnDefinitions>
                        <l:OverviewReportsControl Margin="26,-3,0,0" Width="339.035" Height="300" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" VerticalAlignment="Top"  ></l:OverviewReportsControl>
                         
                            <Border BorderBrush="Black" BorderThickness="1" Height="394" HorizontalAlignment="Left" Margin="55,47,0,0" Name="border2" VerticalAlignment="Top" Width="858" Grid.ColumnSpan="3" Background="#FFF0EFEC" CornerRadius="5" />
                        </Grid>
                    </TabItem>
    		
    		
    	</TabControl>
        <Button 
        	Style="{StaticResource GlassButton}"
        	Height="27" 
        	Margin="0,9,177.161,0" 
        	x:Name="btnAdvanceOptions" 
        	VerticalAlignment="Top" 
        	Click="btnAdvanceOptions_Click" 
        	ToolTip="Advance Options"        	
        	HorizontalAlignment="Right" 
        	Width="29" Grid.Column="1" d:LayoutOverrides="HorizontalAlignment"			>
        	<Image 
			Width="29" 
			Height="27" 
			Source="Images\settings.png" 
			RenderTransformOrigin="0.114,0.252" 
			Stretch="Fill" />	
        </Button>       
        <Button 
        	x:Name="btnMinimizeWindow"
        	ToolTip="Minimize"
        	HorizontalAlignment="Right" 
        	Margin="0,5.334,87.661,0" 
        	VerticalAlignment="Top" 
        	Width="29" 
        	Height="27"
        	Background="#FF7CDDFD"
        	Click="btnMinimizeWindow_Click"
        	Style="{StaticResource GlassButton}" Grid.Column="1">
        	<Image 
        		Width="16" 
        		Height="23" 
        		Source="Images\minimize.png"
				/>
        </Button>
            <Button 
        	x:Name="btnChangeView" 
        	HorizontalAlignment="Right" 
        	Margin="0,4.767,51.661,0" 
        	VerticalAlignment="Top"		
        	Width="29" 
        	Height="27"
        	Background="#FF7CDDFD"
        	Click="btnChangeView_Click"
        	Style="{StaticResource GlassButton}" RenderTransformOrigin="1.31,0.278"
		    Grid.Column="1"
            ToolTip="Restore Down" 
                >
                <Image 
                    Name="restore_down"
        		    Width="20" 
        		    Height="25" 
        		    Source="Images\change.png"
				/>
                </Button>
            <Button 
        	x:Name="btnClose"         	
        	Margin="0,4.834,13.661,0" 
        	VerticalAlignment="Top" 
        	Click="btnClose_Click"
        	Style="{StaticResource GlassButton}"
        	Background="#FF7CDDFD"
        	ToolTip="Close" 
			Height="27" 
			d:LayoutOverrides="VerticalAlignment" Grid.Column="1" HorizontalAlignment="Right" Width="29.628"
		>
                <Image 
        		Width="14" 
        		Height="16" 
        		Source="Images\close.png"
				/>
            </Button>
            <Button x:Name="btnHelp"				
				Height="27" 
				Width="29" 
				HorizontalAlignment="Right" 
				Margin="0,9,138.661,0" 
				VerticalAlignment="Top" 
				Style="{StaticResource GlassButton}" 			
                Command="Help"
                ToolTip="Help" 
				RenderTransformOrigin="0.654,0.266" Grid.Column="1"
		>
        	<Image 
        		Width="24" 
        		Height="24" 
        		Source="Images\help.png" 
        		RenderTransformOrigin="0.207,0.043" 
        		Stretch="Fill"/>	
       	</Button>
        	<Image 
        		Source="Images\logo.png" Height="40.316" Grid.Column="1" Margin="0,6,808.66,0" 
                VerticalAlignment="Top" d:LayoutOverrides="GridBox"   />
            </Grid>
		 
	</Border>
    
  </Viewbox>

 
</Window>

